/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pa165.bookingmanager.web;

import cz.muni.fi.pa165.bookingmanager.dto.HotelDTO;
import net.sourceforge.stripes.action.ActionBeanContext;

/**
 *
 * @author Stefan Repcek
 */
public class MyActionBeanContext extends ActionBeanContext {
    
    public void setHotel(HotelDTO hotel) {
        getRequest().getSession().setAttribute("hotel", hotel);
    }

    public HotelDTO getHotel() {
        return (HotelDTO) getRequest().getSession().getAttribute("hotel");
    }
    
  
}
